KEYS: Limit ABI change in 4.13.10
authorBen Hutchings <ben@decadent.org.uk>
Sun, 29 Oct 2017 10:30:46 +0000 (10:30 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 30 Oct 2017 15:32:11 +0000 (15:32 +0000)
commit4b7bfeb8c11332ca7b5f0299c909324ea4230acc
tree068265507db8d090fd3594754bea07a91c946a7d
parent73c25d10b612e79c2dd2d7c1a0c56b9c51541573
KEYS: Limit ABI change in 4.13.10

Commit 363b02dab09b ("KEYS: Fix race between updating and finding a
negative key") rearranged various state members in struct key, resulting
in an ABI change for all keys APIs.

Only the keys subsystem and key type implementation use this state
information, so we can limit the ABI break to them:

- Renumber the other flags back to their old values
- Hide the deletion of the reject_error field from genksyms (it was only
  used inside the keys subsystem)
- Move the new state field to the end of the structure and hide it from
  genksyms
- Rename the register_key_type() function, so newly built key type
  modules will only load on top of the new keys subsystem while old
  key type modules will only load on top of the old keys subsystem

Gbp-Pq: Topic debian
Gbp-Pq: Name keys-limit-abi-change-in-4.13.10.patch
include/linux/key-type.h
include/linux/key.h